package com.kelaite.procurement.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration;

import com.kelaite.procurement.entity.TCity;
import com.kelaite.procurement.entity.TCompany;
import com.kelaite.procurement.entity.TProvince;
import com.kelaite.procurement.entity.TVendor;



@Configuration
@EnableJpaRepositories(value={"com.kelaite.procurement.repository"})
public class MyRepositoryRestMvcConfiguration extends RepositoryRestMvcConfiguration {

    protected void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
        config.exposeIdsFor(TCity.class);
        config.exposeIdsFor(TProvince.class);
        config.exposeIdsFor(TVendor.class);
        config.exposeIdsFor(TCompany.class);
    }
}